home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1996 April / Macworld (1996-04).dmg / Shareware World / Entertainment / Demos / HIARCS1.0DemoChess / HIARCS Demo Companion ƒ / EPD format description < prev    next >
Text File  |  1996-01-27  |  2KB  |  59 lines

  1. *** This explanation of the EPD format is adapted from
  2.        the helpfile of the freeware program CRAFTY
  3.        (Mac version currently still in beta)
  4.  
  5. EPD (Extended Position Description) describes a
  6.    chess position by a Forsythe-like string of characters
  7.    with the following information in the following order
  8.     -  the piece locations, from rank 8 to rank 1
  9.     - which side is to move: "b" for black, "w" for white
  10.     - what castling is still possible (null if none)
  11.     - allowable en passant capture (null if none)
  12.     - a "-" indicating the end of the description.
  13.  
  14. The white pieces are represented by PNBRQK (upper case),
  15. and black pieces by pnbrqk (lower case).
  16.  
  17. The pieces are listed from rank 8 through rank 1
  18. (from black side to white side). A series of adjacent
  19. empty squares between pieces is represented by the
  20. number ( 1 to 8) of empty squares between the pieces.
  21. "Trailing" empty squares are not listed explicitly,
  22. unless the entire rank is empty, in which case an "8" is used.
  23.  
  24. A "/" indicates the end of each rank, so any legal
  25. EPD file will have a total of 8 "/"s.
  26.  
  27. After the last "/" there is a space, followed by either a
  28.  "b" or a "w", indicating that black or white is to move.
  29.  
  30. Next the possible castling rights are indicated (if any):
  31. KQ: white can castle kingside/queenside/both;
  32. kq: same for black; 
  33.  
  34. Then if there is a legal en passant capture, it is
  35. indicated:
  36.  
  37. a1-h8: indicates the square occupied
  38. by a pawn that can be captured en passant.
  39.  
  40. A hyphen indicates the end of the input.
  41.  
  42. So, the following EPD string:
  43.  
  44. k2r/ppp5/8/8/8/Q/5PPP/7K/ b -
  45.  
  46. indicates the following position:
  47.  
  48.                    k  *  *  r  *  *  *  *
  49.                    p  p  p  *  *  *  *  *
  50.                    *  *  *  *  *  *  *  *
  51.                    *  *  *  *  *  *  *  *
  52.                    *  *  *  *  *  *  *  *
  53.                    Q  *  *  *  *  *  *  *
  54.                    *  *  *  *  *  P  P  P
  55.                    *  *  *  *  *  *  *  K
  56.  
  57. Try importing the file "example.EPD" into HIARCS
  58. demo to see this. A couple of other sample EPD files
  59. are also included.